package com.crl.gClient.view
{
	import com.crl.core.animation.BitmapAnimationPlayer;
	import com.crl.game.simulation.client.view.ActorView;
	import com.crl.manager.TickManager;
	
	import flash.display.Bitmap;
	
	public class ActorBitmapView extends ActorView
	{
		[Embed(source="assets/player.png")] 
		private var ImgPlayer:Class;
		
		
		public function ActorBitmapView()
		{
			super();
		}
		
		override protected function defaults():void{
			
			
			var bitmapPlayer:BitmapAnimationPlayer=new BitmapAnimationPlayer(14,14);
			bitmapPlayer.tickManager=new TickManager(20);
			bitmapPlayer.bitmapdata=(new ImgPlayer() as Bitmap).bitmapData;
			
			bitmapPlayer.addAnimation("idle",[0],0,false);
			bitmapPlayer.addAnimation("walk",[1,2,3,0],200,true);
			bitmapPlayer.addAnimation("walk_back",[3,2,1,0],200,true);
			bitmapPlayer.addAnimation("flail",[1,2,3,0],180,true);
			bitmapPlayer.addAnimation("jump",[4],0,false);
			
			animationPlayer=bitmapPlayer;
			
			super.defaults();
		}
		
	}
}